package net.neptech.model.mdt;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Author Saya
 * @Date 2025/8/13 11:32
 * @Description TODO
 **/
@Entity
@Table(name = "mdt_document")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Document {
    @Id
    @Column(name = "doc_id")
    @GenericGenerator(name = "snowflake", type = SnowflakeIdGenerator.class)
    @GeneratedValue(generator = "snowflake")
    private Long docId;
    @Column(name = "doc_type")
    private String docType;
    @Column(name = "doc_url")
    private String docUrl;
}
